package com.yike.order.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yike.common.pagination.BasePageOrderParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <pre>
 * 店铺退款分页参数
 * </pre>
 *
 * @author yike
 * @date 2024-07-18
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "店铺退款分页参数")
public class ShopRefundPageParam extends BasePageOrderParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("店铺ID")
    // @NotNull(message = "店铺ID不能为空")
    private Long shopId;

    @ApiModelProperty("设备编号")
    private String macNo;

    @ApiModelProperty("订单号模糊查询")
    private String keyword;

    @ApiModelProperty("订单状态: 0.待退款 1.已退款 2.退款失败")
    private Integer status;

    @ApiModelProperty(value = "开始时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String beginTime;

    @ApiModelProperty(value = "结束时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;
}
